home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Communications / pcomm / Source / Waitfor.out < prev    next >
Encoding:
Text File  |  1995-06-12  |  1.0 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      WAITFOR(1)           UNIX    System V (local)        WAITFOR(1)
  5.  
  6.  
  7.  
  8.      NAME
  9.       waitfor - wait for a string to appear    on the stdin
  10.  
  11.      SYNOPSIS
  12.       waitfor [ -n ] string
  13.  
  14.      DESCRIPTION
  15.       Waitfor reads    the standard input and returns a 0 if the
  16.       string argument is found, returns a 1    if the strings did not
  17.       appear within    the allotted time, or returns a    -1 on error.
  18.       If the string    is found, waitfor returns immediately.
  19.  
  20.       Waitfor is designed to be used by Pcomm in a shell script
  21.       for automatically logging a user onto    a remote system.
  22.  
  23.       The -n option    is used    to specify the length of time in
  24.       seconds to wait.  The    default    is 10 seconds.
  25.  
  26.      EXAMPLE
  27.            # wait 5    seconds    for the    login prompt
  28.            waitfor -5 login:
  29.            # test the exit code of the waitfor command
  30.            if [ $? -eq 0 ]
  31.            then
  32.             # send my user ID
  33.             echo egray
  34.            fi
  35.  
  36.      SEE ALSO
  37.       pcomm(1), matches(1),    modem_break(1),    Pcomm Reference    Manual
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 12/31/89)
  64.  
  65.  
  66.  
  67.